console.log('detects.js file loaded');